﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChartSharp.QR
{
    public enum EncodingType
    {
        Shift_JIS,
        UTF8,
        ISO_8859_1,
    }

    public class EncodingTypeParam : ChartParam
    {
        protected EncodingType _encoding;

        public override string Name
        {
            get { return "choe"; }
        }

        public override string Data
        {
            get
            {
                switch (_encoding)
                {
                    case EncodingType.Shift_JIS:
                        return "Shift_JIS";

                    case EncodingType.UTF8:
                        return "UFT-8";

                    case EncodingType.ISO_8859_1:
                        return "ISO_8895_1";

                    default:
                        throw new ArgumentOutOfRangeException("_type");
                }
            }
        }

        public EncodingTypeParam(EncodingType encoding)
        {
            _encoding = encoding;
        }
    }
}
